﻿namespace SchoolExercise
{
    using System.Collections.Generic;

    internal class Teacher : Person, ICommentable
    {
        private List<Discipline> teacherDisciplines;
        private string comment;

        public Teacher(string nameOfTeacher) : base(nameOfTeacher)
        {
            this.teacherDisciplines = new List<Discipline>();
        }

        public Teacher(string nameOfTeacher, string commentForTeacher)
            : this(nameOfTeacher)
        {
            this.Comment = commentForTeacher;
        }

        public List<Discipline> TeacherDisciplines
        {
            get
            {
                return this.teacherDisciplines;
            }
        }

        public string Comment
        {
            get
            {
                return this.comment;
            }

            set
            {
                this.comment = value;
            }
        }

        public void AddDiscipline(Discipline disciplineToADD)
        {
            this.teacherDisciplines.Add(disciplineToADD);
        }

        public void RemoveDiscipline(Discipline disciplineToRemove)
        {
            this.teacherDisciplines.Remove(disciplineToRemove);
        }
    }
}